package io.renren.modules.medical.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.medical.entity.WebSocketInterEntity;
import io.renren.modules.medical.vo.weixinVo.ApiChatHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Luo Sheng
 * @school YiBin university
 * @create 2023-03-29 23:18
 */
@Mapper
public interface WebSocketInterDao extends BaseMapper<WebSocketInterEntity> {

    List<ApiChatHistory> getHistoryMsg(@Param("page")Long page, @Param("limit")Long limit, @Param("sendId") Long sendId, @Param("sendToId") Long sendToId);

    Integer clearNoneVisit(@Param("sendId") Long sendId, @Param("sendToId") Long sendToId);
}
